# Fibonacci sequence with continuation

import sys

def fibo():
    a, b = 0, 1
    while True:
        yield a
        a, b = b, a + b

fibo_gen = fibo()

n = 20
if sys.argv[1:]:
    n = int(sys.argv[1])
for x in range(n):
    print fibo_gen.next()
